/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Test;

import control.*;
import entidad.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.swing.JOptionPane;

/**
 *
 * @author HERX
 */

public class MovieCenterTest {

    public MovieCenterTest() {
    }
    
    public void test(){
        
        ControlArtist controlArtist = new ControlArtist();
        ControlSong controlSong = new ControlSong();
        ControlSoundTrack controlSoundTrack = new ControlSoundTrack();
        ControlMovie controlMovie = new ControlMovie();
        ControlDirector controlDirector = new ControlDirector();
        ControlActor controlActor = new ControlActor();
             
        //esto lo reduzco a lists después
        SoundTrack soundTrack1 = new SoundTrack();
        SoundTrack soundTrack2 = new SoundTrack();
        SoundTrack soundTrack3 = new SoundTrack();
        Movie movie1 = new Movie();
        Movie movie2 = new Movie();
        Movie movie3 = new Movie();
        Director director1 = new Director();
        Director director2 = new Director();
        Director director3 = new Director();
        Artist artist1 = new Artist();
        Artist artist2 = new Artist();
        Artist artist3 = new Artist();
        Artist artist4 = new Artist();
        Artist artist5 = new Artist();
        Artist artist6 = new Artist();
        Actor actor1 = new Actor ();
        Actor actor2 = new Actor ();
        Actor actor3 = new Actor ();
        Actor actor4 = new Actor ();
        Actor actor5 = new Actor ();
        Actor actor6 = new Actor ();
        Actor actor7 = new Actor ();
        Actor actor8 = new Actor ();
        Actor actor9 = new Actor ();
        Song song1 = new Song();  
        Song song2 = new Song();  
        Song song3 = new Song();  
        Song song4 = new Song(); 
        Song song5 = new Song();  
        Song song6 = new Song();  
        Song song7 = new Song();  
        Song song8 = new Song(); 
        Song song9 = new Song(); 
        Song song10 = new Song(); 
        Song song11 = new Song(); 
        Song song12 = new Song(); 
        Song song13 = new Song(); 
        Song song14 = new Song(); 
        Song song15 = new Song(); 
        Song song16 = new Song(); 
        Song song17 = new Song(); 
        Song song18 = new Song(); 
              
        movie1.setName("Kill Bill Vol.1");
        movie1.setYearMovie(2003);
        movie1.setRating(8.5f);
        movie1.setPlotKeywords("asesinato, venganza");
        movie1.setGenre("Drama");
        movie1.setDuration(3);
        movie1.setCover("WIP");
        movie1.setAvailableForRental(true);
        movie1.setAvailableForPurchase(true);
        soundTrack1.setMovie(movie1);
        
        director1.setName("Quentin");
        director1.setLastName("Tarantino");
        director1.setPicture("WIP");
        Date date7 = new Date (27,3,1973);
        director1.setBirthDate(date7);
        director1.setBirthPlace("Knoxville, TN");
        director1.addMovie(movie1);
        
        movie2.setName("Star Wars Episode I : The Phantom Menace");
        movie2.setYearMovie(1999);
        movie2.setRating(9.5f);
        movie2.setPlotKeywords("guerra, ciencia ficcion");
        movie2.setGenre("Accion");
        movie2.setDuration(1.5f);
        movie2.setCover("WIP");
        movie2.setAvailableForRental(true);
        movie2.setAvailableForPurchase(false);
        soundTrack2.setMovie(movie2);
        
        director2.setName("George");
        director2.setLastName("Lucas");
        director2.setPicture("WIP");
        Date date8 = new Date (14,5,1944);
        director2.setBirthDate(date8);
        director2.setBirthPlace("Modesto, CA");
        director2.addMovie(movie2);
        
        movie3.setName("The Lord of The Rings : The Fellowship of The Ring");
        movie3.setYearMovie(2001);
        movie3.setRating(10f);
        movie3.setPlotKeywords("guerra ciencia ficcion, fantasia");
        movie3.setGenre("Accion");
        movie3.setDuration(4);
        movie3.setCover("WIP");
        movie3.setAvailableForRental(true);
        movie3.setAvailableForPurchase(false);
        soundTrack3.setMovie(movie3);
        
        director3.setName("Peter");
        director3.setLastName("Jackson");
        director3.setPicture("WIP");
        Date date9 = new Date (31,9,1961);
        director3.setBirthDate(date9);
        director3.setBirthPlace("Pukerua Bay, New Zealand");
        director3.addMovie(movie3);
           
        controlMovie.createMovie(movie1);
        controlSoundTrack.createSoundTrack(soundTrack1);
        controlDirector.createDirector(director1);
        controlMovie.createMovie(movie2);
        controlSoundTrack.createSoundTrack(soundTrack2);
        controlDirector.createDirector(director2);
        controlMovie.createMovie(movie3);
        controlSoundTrack.createSoundTrack(soundTrack3);
        controlDirector.createDirector(director3);
        
        actor1.setName("Uma");
        actor1.setLastName("Thurman");
        actor1.setPicture("WIP");
        Date date10 = new Date (29,4,1970);
        actor1.setBirthDate(date10);
        actor1.setBirthPlace("Boston, MA");
        actor1.addMovies(movie1);
        controlActor.createActor(actor1);
        
        actor2.setName("Daryl");
        actor2.setLastName("Hannah");
        actor2.setPicture("WIP");
        Date date11 = new Date (3,12,1960);
        actor2.setBirthDate(date11);
        actor2.setBirthPlace("Chicago, IL");
        actor2.addMovies(movie1);
        controlActor.createActor(actor2);
        
        actor3.setName("Lucy");
        actor3.setLastName("Liu");
        actor3.setPicture("WIP");
        Date date12 = new Date (2,12,1968);
        actor3.setBirthDate(date12);
        actor3.setBirthPlace("New York, NY");
        actor3.addMovies(movie1);
        controlActor.createActor(actor3);
        
        actor4.setName("Liam");
        actor4.setLastName("Neeson");
        actor4.setPicture("WIP");
        Date date13 = new Date (7,6,1952);
        actor4.setBirthDate(date13);
        actor4.setBirthPlace("Ballymena, Northern Ireland");
        actor4.addMovies(movie2);
        controlActor.createActor(actor4);
        
        actor5.setName("Ewan");
        actor5.setLastName("McGregor");
        actor5.setPicture("WIP");
        Date date14 = new Date (31,3,1971);
        actor5.setBirthDate(date14);
        actor5.setBirthPlace("Crieff, Scotland");
        actor5.addMovies(movie2);
        controlActor.createActor(actor5);
        
        actor6.setName("Natalie");
        actor6.setLastName("Portman");
        actor6.setPicture("WIP");
        Date date15 = new Date (9,6,1981);
        actor6.setBirthDate(date15);
        actor6.setBirthPlace("Jerusalen, Israel");
        actor6.addMovies(movie2);
        controlActor.createActor(actor6);
        
        actor7.setName("Elijad");
        actor7.setLastName("Wood");
        actor7.setPicture("WIP");
        Date date16 = new Date (28,1,1981);
        actor7.setBirthDate(date16);
        actor7.setBirthPlace("Cedar Rapids, IA");
        actor7.addMovies(movie3);
        controlActor.createActor(actor7);
        
        actor8.setName("Ian");
        actor8.setLastName("McKellen");
        actor8.setPicture("WIP");
        Date date17 = new Date (25,5,1939);
        actor8.setBirthDate(date17);
        actor8.setBirthPlace("Burnley, England");
        actor8.addMovies(movie3);
        controlActor.createActor(actor8);
        
        actor9.setName("Vigo");
        actor9.setLastName("Mortensen");
        actor9.setPicture("WIP");
        Date date18 = new Date (20,9,1958);
        actor9.setBirthDate(date18);
        actor9.setBirthPlace("New York, NY");
        actor9.addMovies(movie3);
        controlActor.createActor(actor9);
      
        artist1.setName("Robert Fitzgerald");
        artist1.setLastName("Diggs");
        artist1.setPicture("WIP");
        Date date1 = new Date (10,10,10);
        artist1.setBirthDate(date1);
        artist1.setBirthPlace("New York, NY");
                 
        song1.setSoundTrack(soundTrack1);
        song1.setDuration(7);
        song1.setTitle("Ode to O-ren Ishii");
                   
        song2.setSoundTrack(soundTrack1);
        song2.setDuration(6);
        song2.setTitle("Crane-White Lightning");
                         
        song3.setSoundTrack(soundTrack1);
        song3.setDuration(5);
        song3.setTitle("Yakuza Oren 1");
              
        song4.setSoundTrack(soundTrack1);
        song4.setDuration(5);
        song4.setTitle("Bannister Fight");
              
        artist1.addSong(song1);
        artist1.addSong(song2);
        artist1.addSong(song3);
        artist1.addSong(song4);
        controlSong.createSong(song1);
        controlSong.createSong(song2);
        controlSong.createSong(song3);
        controlSong.createSong(song4);
        controlArtist.createArtist(artist1);
        
        artist2.setName("Ennio");
        artist2.setLastName("Morricone");
        artist2.setPicture("WIP");
        Date date2 = new Date (10,10,1928);
        artist2.setBirthDate(date2);
        artist2.setBirthPlace("Venezia, Italia");
        
        song5.setSoundTrack(soundTrack1);
        song5.setDuration(7);
        song5.setTitle("From Man to Man");
         
        song6.setSoundTrack(soundTrack1);
        song6.setDuration(7);
        song6.setTitle("A Silhouette of Doom");
        
        artist2.addSong(song5);
        artist2.addSong(song6);
        
        controlSong.createSong(song5);
        controlSong.createSong(song6);        
        controlArtist.createArtist(artist2);
        
        artist3.setName("The 5.6.7.8's");
        artist3.setLastName("Band");
        artist3.setPicture("WIP");
        Date date3 = new Date (10,10,1986);
        artist3.setBirthDate(date3);
        artist3.setBirthPlace("Tokyo, Japan");
       
        song7.setSoundTrack(soundTrack1);
        song7.setDuration(7);
        song7.setTitle("I'm Blue");
       
        song8.setSoundTrack(soundTrack1);
        song8.setDuration(7);
        song8.setTitle("I walk like Jane Mansfield");
        
        artist3.addSong(song7);
        artist3.addSong(song8);
        
        controlSong.createSong(song7);
        controlSong.createSong(song8);        
        controlArtist.createArtist(artist3); 
        
        artist4.setName("John");
        artist4.setLastName("Williams");
        artist4.setPicture("WIP");
        Date date4 = new Date (8,2,1932);
        artist4.setBirthDate(date4);
        artist4.setBirthPlace("New York, NY");
        
        song9.setSoundTrack(soundTrack2);
        song9.setDuration(3);
        song9.setTitle("Anakin's Theme");
        
        song10.setSoundTrack(soundTrack2);
        song10.setDuration(8);
        song10.setTitle("Duel of the Fates");
        
        song11.setSoundTrack(soundTrack2);
        song11.setDuration(12);
        song11.setTitle("He's the choosen one");
        
        song12.setSoundTrack(soundTrack2);
        song12.setDuration(1);
        song12.setTitle("Qui-gon's Noble End");
        
        artist4.addSong(song9);
        artist4.addSong(song10);
        artist4.addSong(song11);
        artist4.addSong(song12);
        
        controlSong.createSong(song9);
        controlSong.createSong(song10); 
        controlSong.createSong(song11);
        controlSong.createSong(song12); 
        controlArtist.createArtist(artist4); 
        
        artist5.setName("Howard");
        artist5.setLastName("Shore");
        artist5.setPicture("WIP");
        Date date5 = new Date (18,9,1946);
        artist5.setBirthDate(date5);
        artist5.setBirthPlace("Toronto, ON");
        
        song13.setSoundTrack(soundTrack3);
        song13.setDuration(3);
        song13.setTitle("A Journey in the Dark");
        
        song14.setSoundTrack(soundTrack3);
        song14.setDuration(8);
        song14.setTitle("A Knife in the Dark");
        
        song15.setSoundTrack(soundTrack3);
        song15.setDuration(12);
        song15.setTitle("Amon Hen");
        
        song16.setSoundTrack(soundTrack3);
        song16.setDuration(1);
        song16.setTitle("Concerning Hobbits");
        
        artist5.addSong(song13);
        artist5.addSong(song14);
        artist5.addSong(song15);
        artist5.addSong(song16);
        
        controlSong.createSong(song13);
        controlSong.createSong(song14); 
        controlSong.createSong(song15);
        controlSong.createSong(song16); 
        controlArtist.createArtist(artist5); 
        
        artist6.setName("Enya");
        artist6.setLastName("Ni Bhraonain");
        artist6.setPicture("WIP");
        Date date6 = new Date (19,5,1961);
        artist6.setBirthDate(date6);
        artist6.setBirthPlace("Gweedore, Ireland");
        
        song17.setSoundTrack(soundTrack3);
        song17.setDuration(3);
        song17.setTitle("May It Be");
        
        song18.setSoundTrack(soundTrack3);
        song18.setDuration(8);
        song18.setTitle("The Council of Elrond");
            
        artist6.addSong(song17);
        artist6.addSong(song18);
     
        controlSong.createSong(song17);
        controlSong.createSong(song18); 
        controlArtist.createArtist(artist6);    
    }   
}
